package com.mrd.util;

import java.util.ArrayList;
import java.util.HashMap;

public class MsgExcel extends HashMap<String, Object> {
  private static final long serialVersionUID = 1L;

  public MsgExcel() {
    put("code", 0);
    put("message", new ArrayList<String>());
  }

  public void add(String value) {
    if ((int) this.get("code") == 0) {
      this.put("code", -1);
    }
    ((ArrayList<String>) this.get("message")).add(value);
  }
}
